<?php 

namespace App\Models\ModelFilters;

use EloquentFilter\ModelFilter;

class AdminUserFilter extends ModelFilter
{
    /**
    * Related Models that have ModelFilters as well as the method on the ModelFilter
    * As [relationMethod => [input_key1, input_key2]].
    *
    * @var array
    */
    public $relations = [];

    public function name($name)
    {
        return $this->whereLike('name',$name);
    }

    public function phone($phone)
    {
        return $this->whereLike('phone',$phone);
    }

}
